#define _CRT_SECURE_NO_WARNINGS 1



#include<stdio.h>
int main()
{
	FILE* pf = fopen("data.txt", "r");
	if (pf == NULL)
	{
		perror("fgetc");
		return 1;
	}
	char ret = 0;
	while ((ret = fgetc(pf)) != EOF)
	{
		printf("%c", ret);
	}
	fclose(pf);
	pf = NULL;
	return 0;
}